package com.xzc.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzc.seckill.pojo.Goods;
import com.xzc.seckill.pojo.User;
import com.xzc.seckill.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * @author 徐生
 * @version 1.0
 * Date 2024/4/2 21:34
 * Description: GoodsMapper
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    //获取商品列表——秒杀
    List<GoodsVo> findGoodsVo();

    //获取指定商品详情——根据id
    GoodsVo findGoodsVoByGoodsId(Long goodsId);
}
